﻿#pragma once

#include <qlineedit.h>

class LineEdit_TurnTablePosition : public QLineEdit
{
  Q_OBJECT
private:
  float turnTablePositionUpperLimit = 360;//转台位置上限（绝对值）
  float turnTablePositionLowerLimit = 0;//转台位置下限（绝对值）

  int accuracy = 4;
public:
  LineEdit_TurnTablePosition(QWidget *parent);
  ~LineEdit_TurnTablePosition();
  float getPosition();
  void setPosition(float position);
private slots:
  void slot_positionLineEditFinished();
  void slot_updatePlaceHolder();
public:
  float getTurnTablePositionUpperLimit();
  void setTurnTablePositionUpperLimit(float turnTablePositionUpperLimit);
  float getTurnTablePositionLowerLimit();
  void setTurnTablePositionLowerLimit(float turnTablePositionLowerLimit);
  int getAccuracy();
  void setAccuracy(int accuracy);
};
